package com.nowcoder.code.lcof;

public class JZ69 {

    public int jumpFloor(int number) {

        if (number == 1) {
            return 1;
        }

        int sum = 2;
        int last0 = 1;
        for (int i = 3; i <= number; i++) {
            int m = last0 + sum;
            last0 = sum;
            sum = m;
        }

        return sum;
    }

}
